package com.weifangfirecontrolformal.weifangfirecontrolformal.web.service.check.businesspartition;

import cn.hutool.json.JSONObject;
import com.weifangfirecontrolformal.weifangfirecontrolformal.common.base.BaseService;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.model.RespEntity;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.utils.requestutil.HttpRequestUtil;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class BusinessPartitionService extends BaseService {

	private static final Logger logger = LoggerFactory.getLogger(BusinessPartitionService.class);


	/**
	 * 分区列表
	 * @param
	 * @return
	 */
	public RespEntity businessPartitionList(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","businessPartitionList","businessPartition");
	}

	/**
	 * 分区详情
	 * @param
	 * @return
	 */
	public RespEntity businessPartitionDetail(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","businessPartitionDetail","businessPartition");
	}

	/**
	 * 分区新增
	 * @param
	 * @return
	 */
	public RespEntity businessPartitionAdd(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","businessPartitionAdd","businessPartition");
	}

	/**
	 * 分区修改
	 * @param
	 * @return
	 */
	public RespEntity businessPartitionUpdate(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","businessPartitionUpdate","businessPartition");
	}

	/**
	 * 分区删除
	 * @param
	 * @return
	 */
	public RespEntity businessPartitionDelete(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","businessPartitionDelete","businessPartition");
	}

}
